package demo1;

/**
 * 工人，实际的建造者
 */
public class Worker extends Builder {
    private Product product;

    public Worker() {
        product = new Product();
    }

    void buildA() {
        product.setBuildA("地基");
    }

    void buildB() {
        product.setBuildB("钢筋");
    }

    void buildC() {
        product.setBuildC("铺电线");
    }

    void buildD() {
        product.setBuildD("粉刷墙面");
    }

    Product getProduct() {
        return product;
    }
}
